/* 
 * File:   BitPrinter.h
 * Author: mrdebian
 *
 * Created on June 10, 2014, 10:15 PM
 */

#ifndef BITPRINTER_H
#define	BITPRINTER_H
#include <iostream>
#include <fstream>

using namespace std;

class BitPrinter {
    
    unsigned int buffer;
    int counter;
    int bufferSize;
  
public:
    
    BitPrinter(); 

    int printTRUE(ofstream &oFile);
    int printFALSE(ofstream &oFile);
    int close(ofstream &oFile);

private:
    int clear();
    int flushBuffer(ofstream &oFile);
    
};



/*###########################################################################*/

class BitReader {
    
    unsigned int buffer;
    int counter;
    int bufferSize;
  
public:
    
    BitReader(); 

    bool readFromFile(istream &iFile);    
    
};

#endif	/* BITPRINTER_H */

